package com.dsjy.yf.address.entity.myenum;

/**
 * @author whj
 * @version 1.0
 * @date 2021-03-10 11:50
 */

public enum TableEnum {

    /**
     * 表名
     */
    COUNTY("county", "county_name"),
    EXCLUSIVEZONE("exclusivezone", "exclusivezone_name"),
    POI("poi", "poi_name"),
    TOWN("town", "town_name"),
    COMMUNITY("community", "community_name"),
    VILLAGE("village", "village_name"),
    STREET("street", "street_name"),
    BUILDING("building", "building_name"),
    YARD("yard", "yard_name"),
    YARDROAD("yardroad", "yardroad_name"),
    SUBAREA("subarea", "subarea_name");

    TableEnum(String tableName, String fieldName) {
        this.tableName = tableName;
        this.fieldName = fieldName;
    }

    /**
     * 表名
     */
    private final String tableName;

    /**
     * 字段名称
     */
    private final String fieldName;

    public String getTableName() {
        return tableName;
    }

    public String getFieldName() {
        return fieldName;
    }

}
